package model;

/**
 * Created by CatM on 18/1/28.
 * 要监视的item
 */
public class HTItem {
    //品牌
    public String brand;

    //产品
    public String product;

    //匹配的金额
    public float amount = -1;

    //匹配的折扣
    public float discount = -1;

    public HTItem(String brand, String product, float amount, float discount){
        this.brand = brand;
        this.amount = amount;
        this.discount = discount;
        this.product = product;
    }

    public static class Builder{
        private String brand;

        //匹配的金额
        private float amount = -1;

        //匹配的折扣
        private float discount = -1;

        private String product;

        public Builder brand(String brand){
            this.brand = brand;
            return this;
        }

        public Builder product(String product){
            this.product = product;
            return this;
        }

        public Builder amount(float a){
            this.amount = a;
            return this;
        }

        public Builder discount(float d){
            this.discount = d;
            return this;
        }

        public HTItem build(){
            return new HTItem(this.brand, this.product, this.amount, this.discount);
        }
    }
}
